﻿using ipdatacloud;


public class Test
{
    public static void Main()
    {
        // 1.初始化查询对象
        IPSearch search = IPSearch.Ipv4InstanceFileLocation("D:\\databases\\ipv4_proxy_v2.dat");

        // 2.执行查询操作
        string ip = "1.0.112.8";
        string res = search.Find(ip);
        Console.WriteLine(res);

        // 3.解析查询结果（以标准归属地库为例）
        Proxy proxy = new Proxy(res);
        Console.WriteLine(proxy.ProxyType);
    }
}
